summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMerry <git@mary.rs>2024-01-28 20:14:38 +0100
committerMerry <git@mary.rs>2024-01-28 20:14:38 +0100
commit0bf46cb1ee44dc9613f1e65277d81f6eef8dd283 (patch)
tree3e99f6c102d50c9958b8bee484e3cb761a4f4d2d
parentMerge pull request #12713 from shinra-electric/mvk-127 (diff)
downloadyuzu-0bf46cb1ee44dc9613f1e65277d81f6eef8dd283.tar
yuzu-0bf46cb1ee44dc9613f1e65277d81f6eef8dd283.tar.gz
yuzu-0bf46cb1ee44dc9613f1e65277d81f6eef8dd283.tar.bz2
yuzu-0bf46cb1ee44dc9613f1e65277d81f6eef8dd283.tar.lz
yuzu-0bf46cb1ee44dc9613f1e65277d81f6eef8dd283.tar.xz
yuzu-0bf46cb1ee44dc9613f1e65277d81f6eef8dd283.tar.zst
yuzu-0bf46cb1ee44dc9613f1e65277d81f6eef8dd283.zip
-rw-r--r--src/yuzu/configuration/configure_graphics.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp
index 0836bcb7e..54c931e56 100644
--- a/src/yuzu/configuration/configure_graphics.cpp
+++ b/src/yuzu/configuration/configure_graphics.cpp
@@ -224,6 +224,11 @@ void ConfigureGraphics::PopulateVSyncModeSelection(bool use_setting) {
}
void ConfigureGraphics::UpdateVsyncSetting() const {
+ const Settings::RendererBackend backend{GetCurrentGraphicsBackend()};
+ if (backend == Settings::RendererBackend::Null) {
+ return;
+ }
+
const auto mode = vsync_mode_combobox_enum_map[vsync_mode_combobox->currentIndex()];
const auto vsync_mode = PresentModeToSetting(mode);
Settings::values.vsync_mode.SetValue(vsync_mode);